package com.aiyige.page.my.message.notifymessage.ordermessage.model;

/**
 * Created by zhuyakun on 2017/11/28.
 */

public class OrderMessage {
    String goodsId;
    String otherId;
    String otherName;
    String otherAvatar;
    String cover;
    long otherTime;
    String mediaTitle;
    String orderNo;
    String contact;
    String otherOrderMessage;
    long mediaReleaseDate;
    double price;
    int quantity;
    int targetType;
    String router;
    String refundRouter;
    int orderStatus;
    String rejectReason;
    String orderId;

    public OrderMessage() {
    }

    private OrderMessage(Builder builder) {
        setGoodsId(builder.goodsId);
        setOtherId(builder.otherId);
        setOtherName(builder.otherName);
        setOtherAvatar(builder.otherAvatar);
        setCover(builder.cover);
        setOtherTime(builder.otherTime);
        setMediaTitle(builder.mediaTitle);
        setOrderNo(builder.orderNo);
        setContact(builder.contact);
        setOtherOrderMessage(builder.otherOrderMessage);
        setMediaReleaseDate(builder.mediaReleaseDate);
        setPrice(builder.price);
        setQuantity(builder.quantity);
        setTargetType(builder.targetType);
        setRouter(builder.router);
        setRefundRouter(builder.refundRouter);
        setOrderStatus(builder.orderStatus);
        setRejectReason(builder.rejectReason);
        setOrderId(builder.orderId);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getOtherId() {
        return otherId;
    }

    public void setOtherId(String otherId) {
        this.otherId = otherId;
    }

    public String getOtherName() {
        return otherName;
    }

    public void setOtherName(String otherName) {
        this.otherName = otherName;
    }

    public String getOtherAvatar() {
        return otherAvatar;
    }

    public void setOtherAvatar(String otherAvatar) {
        this.otherAvatar = otherAvatar;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public long getOtherTime() {
        return otherTime;
    }

    public void setOtherTime(long otherTime) {
        this.otherTime = otherTime;
    }

    public String getMediaTitle() {
        return mediaTitle;
    }

    public void setMediaTitle(String mediaTitle) {
        this.mediaTitle = mediaTitle;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getOtherOrderMessage() {
        return otherOrderMessage;
    }

    public void setOtherOrderMessage(String otherOrderMessage) {
        this.otherOrderMessage = otherOrderMessage;
    }

    public long getMediaReleaseDate() {
        return mediaReleaseDate;
    }

    public void setMediaReleaseDate(long mediaReleaseDate) {
        this.mediaReleaseDate = mediaReleaseDate;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public int getTargetType() {
        return targetType;
    }

    public void setTargetType(int targetType) {
        this.targetType = targetType;
    }

    public String getRouter() {
        return router;
    }

    public void setRouter(String router) {
        this.router = router;
    }

    public String getRefundRouter() {
        return refundRouter;
    }

    public void setRefundRouter(String refundRouter) {
        this.refundRouter = refundRouter;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getRejectReason() {
        return rejectReason;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public static final class Builder {
        private String goodsId;
        private String otherId;
        private String otherName;
        private String otherAvatar;
        private String cover;
        private long otherTime;
        private String mediaTitle;
        private String orderNo;
        private String contact;
        private String otherOrderMessage;
        private long mediaReleaseDate;
        private double price;
        private int quantity;
        private int targetType;
        private String router;
        private String refundRouter;
        private int orderStatus;
        private String rejectReason;
        private String orderId;

        private Builder() {
        }

        public Builder goodsId(String val) {
            goodsId = val;
            return this;
        }

        public Builder otherId(String val) {
            otherId = val;
            return this;
        }

        public Builder otherName(String val) {
            otherName = val;
            return this;
        }

        public Builder otherAvatar(String val) {
            otherAvatar = val;
            return this;
        }

        public Builder cover(String val) {
            cover = val;
            return this;
        }

        public Builder otherTime(long val) {
            otherTime = val;
            return this;
        }

        public Builder mediaTitle(String val) {
            mediaTitle = val;
            return this;
        }

        public Builder orderNo(String val) {
            orderNo = val;
            return this;
        }

        public Builder contact(String val) {
            contact = val;
            return this;
        }

        public Builder otherOrderMessage(String val) {
            otherOrderMessage = val;
            return this;
        }

        public Builder mediaReleaseDate(long val) {
            mediaReleaseDate = val;
            return this;
        }

        public Builder price(double val) {
            price = val;
            return this;
        }

        public Builder quantity(int val) {
            quantity = val;
            return this;
        }

        public Builder targetType(int val) {
            targetType = val;
            return this;
        }

        public Builder router(String val) {
            router = val;
            return this;
        }

        public Builder refundRouter(String val) {
            refundRouter = val;
            return this;
        }

        public Builder orderStatus(int val) {
            orderStatus = val;
            return this;
        }

        public Builder rejectReason(String val) {
            rejectReason = val;
            return this;
        }

        public Builder orderId(String val) {
            orderId = val;
            return this;
        }

        public OrderMessage build() {
            return new OrderMessage(this);
        }
    }
}
